package com.example.demo.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2018/10/15 0015.
 */
@Data
public class InquiryAddVo {
    @NotBlank(message = "新增时备件编码不能为空")
    private String inquiryNo;
    @JsonFormat(pattern = "yy-MM-dd HH-mm-ss", timezone = "Asia/Beiging")
    private Date date;
   // @NotNull(message = "询价类型不能为空")
    private String type;
    private Integer legalPersonId;
    @NotBlank(message = "法人名称不能为空")
    private String legalPersonName;
    //@NotBlank(message = "币别不能为空")
    private String moneyType;
   // @NotNull(message = "是否含税不能为空")
    private Boolean isTax;
    @JsonFormat(pattern = "yy-MM-dd HH-mm-ss", timezone = "Asia/Beiging")
    //@NotNull(message = "询价开始日期不能为空")
    private Date startDate;
    @JsonFormat(pattern = "yy-MM-dd HH-mm-ss", timezone = "Asia/Beiging")
   // @NotNull(message = "询价结束日期不能为空")
    private Date endDate;
    //@NotNull(message = "询价状态不能为空")
    private Integer status;
    @Valid
    @NotEmpty(message = "增加时，备件信息不能为空")
    private List<InquiryPartsVo> partsList;
    @Valid
    @NotEmpty(message = "增加时，供应商信息不能为空")
    private List<InquirySupplierVo> supplierList;
    private Integer verson;

}
